$strTrim = Rtrim (<String>)
Removes all the
trailing white space characters, tabs, carriage return and line feeds from the specified string.
Parameters
<String> The
string from which trailing white spaces, tabs, carriage return and line feeds are to be removed.
Return Value
The string with
the trailing white spaces, tabs, carriage return and line feeds removed.
Remarks
Example
$Str = "Hello, World "
$NewStr = Rtrim($Str)
- $NewStr now
contains "Hello, World".